<?php defined('SYSPATH') or die('No direct script access.');
class Interest_Model extends Model {
 
    /**
    * Parent constructor - creates the db object
    */
    public function __construct() {
       // load database library into $this->db (can be omitted if not required)
	parent::__construct();
    }   
    
    public function get_all_questions() {
	$result = $this->db->from('interestquestion')->orderby('order', 'asc')->get();
	return $result;        
    }
}

?>